<?php require_once('../../core/import.php');?>
<?php User::Permission('EXHIBITION_COM_DELETE'); ?>
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
        if($Data=DB::GetRowByID('exhibition_company',$ID))
        {
            //删除记录
			@unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['Logo']);
            DB::CExec("delete from exhibition_company  where ID=$ID");
        }
	   header('location:list.php');
    }
?>